<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>哇噻网 全球优质设计师纯手工制作产品购物网站</title>
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
		<!-- QQ接口验证 -->
		<!--<meta property="qc:admins" content="466075661372226075456000637577773117" />-->
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1/ZBZphp/wowsai/Static/index/css/index.css"/>
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1/ZBZphp/wowsai/Static/hdjs/hdjs.css"/>
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1/ZBZphp/wowsai/Static/index/css/hover-min.css"/>
		<script type="text/javascript" src="http://127.0.0.1/ZBZphp/wowsai/Static/index/js/jquery-1.11.3.min.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/ZBZphp/wowsai/Static/index/js/index.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/ZBZphp/wowsai/Static/index/js/common.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/ZBZphp/wowsai/Static/hdjs/hdjs.min.js"></script>
		<script type="text/javascript">
			var loUserUrl='<?php echo U("Index/Login/ajaxCheckLoginUser");?>';
			var loPwdUrl='<?php echo U("Index/Login/ajaxCheckLoginPwd");?>';
		</script>
		<script type="text/javascript" src="http://127.0.0.1/ZBZphp/wowsai/Static/index/js/loginAjax.js"></script>
		<!--<script type="text/javascript">
			$(function(){
				$('#loginForm').validate({
					//username_reg是input的name名称
					username: {
						//规则
		                rule: {
		                    required: true,
		                    ajax:{url:'<?php echo U("Login/ajaxCheckLoginUser");?>'},
		                    //php中要写$msg = array('status'=>false,'message'=>'用户名已存在');
		                    //$msg=array('status' =>true,'message'=>'验证通过');
		                },
		                //违反规则之后
		                error: {
		                    required: '用户名不能为空',
		                },
		                //验证成功之后
		                success: '验证通过',
		            },
		            password: {
						//规则
		                rule: {
		                    required: true,
		                    ajax:{url:'<?php echo U("Login/ajaxCheckLoginPwd");?>'},
		                    //php中要写$msg = array('status'=>false,'message'=>'用户名已存在');
		                    //$msg=array('status' =>true,'message'=>'验证通过');
		                },
		                //违反规则之后
		                error: {
		                    required: '密码不能为空',
		                },
		                //验证成功之后
		                success: '验证通过',
		            },
				})
			})
		</script>-->
	</head>
	<body>
		<div class="erweima" style="display: none;">
			<div class="ewm"></div>
		</div>
		<div class="top" style="display: none;"></div>
		<!--登录开始-->
		<div id="loginZhezhao"></div>
		<div id="login">
			<div class="loginTop">
				<div class="loginTip">
					登录哇噻网
				</div>
				<div class="loginClose"></div>
			</div>
			<div class="loginMain">
				<form action="<?php echo U('Login/login');?>" method="post" id="loginForm">
					<p class="myWasai">
						<label for="user">用户：</label>
						<input type="text" name="username" id="user" placeholder="请登录用户名"/>
						<!--<span>&nbsp;&nbsp;用户不存在</span>-->
					</p>
					<p class="myWasai">
						<label for="pwd">密码：</label>
						<input type="password" name="password" id="pwd" placeholder="请输入密码"/>
					</p>
					<span class="rember">
						<input type="checkbox" name="auto" id="remberMe" />
						<label for="remberMe">记住我一周(在公共场所请慎用此功能)</label>
					</span>
					<dl class="loginBtn">
						<dt>
							<input type="submit" value="登录"/>
						</dt>
						<dd>
							<a href="javascript:;">忘记密码11?</a>
						</dd>
						<dd>
							<a class="qqlogin" href="<?php echo U('Login/register');?>"></a>
						</dd>
					</dl>
				</form>
			</div>
			<div class="clear"></div>
			<div class="loginDash">
				<p class="registerNow">
					还没有哇噻网帐号？
					<a href="<?php echo U('Login/register');?>">立即注册</a>
				</p>
			</div>
		</div>
		<!--头部开始-->
		<div class="header">
			<!--头部的登录\注册\购物车-->
			<div class="header_top">
				    <?php if(!$_SESSION['uid']||!$_SESSION['uname']){ ?>
				<div class="headerLogin">
					<a href="javascript:;" class="login">登录</a>
					<a href="<?php echo U('Login/register');?>" class="register">注册</a>
				</div>
				<?php }else{ ?>
				<div class="myself">
					<a href="<?php echo U('Myself/index');?>"><?php echo $hd['session']['uname'];?></a>
					<a href="<?php echo U('Login/out');?>">退出</a>
				</div>
				<?php } ?>
				<div class="headerCart">
					<a href="<?php echo U('Carter/index');?>">购物车<span><?php echo $totalNum;?></span>件</a>
				</div>
				<div class="logo">
					
				</div>
			</div>
			<!--头部导航-->
			<div class="header_bottom">
				<ul class="nav_left">
					<li class="index"><a href="http://127.0.0.1/ZBZphp/wowsai"></a></li>
					        <?php
        //初始化
        $hd['list']['t'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($topCate)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($topCate as $t) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=5)break;
                //第几个值
                $hd['list'][t]['index']++;
                //第1个值
                $hd['list'][t]['first']=($listId == 0);
                //最后一个值
                $hd['list'][t]['last']= (count($topCate)-1 <= $listId);
                //总数
                $hd['list'][t]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
						    <?php if($hd['list']['t']['last']){ ?>
						<li style=" border-right: 1px solid #F0F0F0;"><a href="<?php echo U('List/index',array('cid'=>$t['cid']));?>"><?php echo $t['cname'];?></a></li>
						<?php }else{ ?>
							<li><a href="<?php echo U('List/index',array('cid'=>$t['cid']));?>"><?php echo $t['cname'];?></a></li>
						<?php } ?>
					<?php }}?>
				</ul>
				<!--搜索框-->
				<div class="search">
					<form action="" method="post">
						<input type="text" placeholder="请输入要搜索的关键词" id="" name="search" class="search-box"/>
						<input type="submit" value="" id="search"/>
					</form>
				</div>				
				<ul class="nav_right">
					<li><a href="javascript:;">动态</a></li>
					<li style=" border-right: 1px solid #F0F0F0;"><a href="javascript:;">海报</a></li>
				</ul>
			</div>
			<!--头部导航结束-->
		</div>
		
		<script type="text/javascript" src="http://127.0.0.1/ZBZphp/wowsai/Static/index/js/jquery.lazyload.min.js"></script>
		<script type="text/javascript" charset="utf-8">
		  $(function() {
		  	$("img.lazy").lazyload({
			  placeholder : "http://127.0.0.1/ZBZphp/wowsai/Static/index/img/loadingDog.gif", //用图片提前占位
			    // placeholder,值为某一图片路径.此图片用来占据将要加载的图片的位置,待图片加载时,占位图则会隐藏
			  effect: "fadeIn", // 载入使用何种效果
			    // effect(特效),值有show(直接显示),fadeIn(淡入),slideDown(下拉)等,常用fadeIn
			  threshold: 200, // 提前开始加载
			    // threshold,值为数字,代表页面高度.如设置为200,表示滚动条在离目标位置还有200的高度时就开始加载图片,可以做到不让用户察觉
		//	  event: 'click',  // 事件触发时才加载
			    // event,值有click(点击),mouseover(鼠标划过),sporty(运动的),foobar(…).可以实现鼠标莫过或点击图片才开始加载,后两个值未测试…
		//	  container: $("#container"),  // 对某容器中的图片实现效果
			    // container,值为某容器.lazyload默认在拉动浏览器滚动条时生效,这个参数可以让你在拉动某DIV的滚动条时依次加载其中的图片
		//	  failurelimit : 10 // 图片排序混乱时
			     // failurelimit,值为数字.lazyload默认在找到第一张不在可见区域里的图片时则不再继续加载,但当HTML容器混乱的时候可能出现可见区域内图片并没加载出来的情况,failurelimit意在加载N张可见区域外的图片,以避免出现这个问题.
			});
		  });
		</script>
		<!--头部结束-->
		<!--banner轮播图开始-->
		<div class="banner">
			<ul class="bannerLunbo">
				<li style="background: url(http://127.0.0.1/ZBZphp/wowsai/Static/index/img/banner1.jpg) no-repeat center center;"><a href=""></a></li>
				<li style="background: url(http://127.0.0.1/ZBZphp/wowsai/Static/index/img/banner2.jpg) no-repeat center center;"><a href=""></a></li>
				<li style="background: url(http://127.0.0.1/ZBZphp/wowsai/Static/index/img/banner3.jpg) no-repeat center center;"><a href=""></a></li>
				<li style="background: url(http://127.0.0.1/ZBZphp/wowsai/Static/index/img/banner4.jpg) no-repeat center center;"><a href=""></a></li>
				<li style="background: url(http://127.0.0.1/ZBZphp/wowsai/Static/index/img/banner5.jpg) no-repeat center center;"><a href=""></a></li>
			</ul>
			<a href="javascript:;" class="prev"></a>
			<a href="javascript:;" class="next"></a>
			<ul class="slider-nav">
				<li class="style"></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
			</ul>
		</div>
		<!--banner轮播结束-->
		<div style="background: #F6F6F6;">
		<!--当日精选开始-->
		<div class="container">
			<h2>当日精选</h2>
			        <?php
        //初始化
        $hd['list']['n'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($today)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($today as $n) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=100)break;
                //第几个值
                $hd['list'][n]['index']++;
                //第1个值
                $hd['list'][n]['first']=($listId == 0);
                //最后一个值
                $hd['list'][n]['last']= (count($today)-1 <= $listId);
                //总数
                $hd['list'][n]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
			    <?php if($hd['list']['n']['last']){ ?>
				<div class="container_list" style="margin-right: 0px;">
				<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal" />
					<div class="shopLabel hvr-grow-shadow">
						<?php echo hd_substr($n['gname'],'9','...');?>
					</div>
				</a>
				</div>
			<?php }else{ ?>
				<div class="container_list">
					<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
						<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
						<div class="shopLabel hvr-grow-shadow">
							<?php echo hd_substr($n['gname'],'9','...');?>
						</div>
					</a>
				</div>	
			<?php } ?>
			<?php }}?>
		</div>
		<!--当日精选结束-->
		<br />
		<!--男装推荐开始-->
		<div class="container">
			<h2>男装推荐</h2>
			        <?php
        //初始化
        $hd['list']['n'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($boys)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($boys as $n) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][n]['index']++;
                //第1个值
                $hd['list'][n]['first']=($listId == 0);
                //最后一个值
                $hd['list'][n]['last']= (count($boys)-1 <= $listId);
                //总数
                $hd['list'][n]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<div class="container_list">
					<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
						<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
						<div class="shopLabel hvr-grow-shadow">
							<?php echo hd_substr($n['gname'],'9','...');?>
						</div>
					</a>
				</div>	
			<?php }}?>
			<!--大图-->
			<div class="container_list container_list_big">
				<a href="<?php echo U('Goods/index',array('gid'=>$boysBig['gid']));?>">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/Goods/20140928091106271.jpg" alt="" height="275" class="hvr-wobble-horizontal"/>
					<div class="shopLabel shopBigLabel hvr-grow-shadow">
						<?php echo hd_substr($boysBig['gname'],'30','...');?>
					</div>
				</a>
			</div>
			<!--大图-->
			        <?php
        //初始化
        $hd['list']['n'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($boys)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=1;
            foreach ($boys as $n) {
                //开始值
                if ($listId<1) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=100)break;
                //第几个值
                $hd['list'][n]['index']++;
                //第1个值
                $hd['list'][n]['first']=($listId == 1);
                //最后一个值
                $hd['list'][n]['last']= (count($boys)-1 <= $listId);
                //总数
                $hd['list'][n]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				    <?php if($hd['list']['n']['first'] or $hd['list']['n']['last']){ ?>
				<div class="container_list" style="margin-right: 0px;">
				<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
					<div class="shopLabel hvr-grow-shadow">
						<?php echo hd_substr($n['gname'],'9','...');?>
					</div>
				</a>
				</div>
				<?php }else{ ?>
				<div class="container_list">
					<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
						<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
						<div class="shopLabel hvr-grow-shadow">
							<?php echo hd_substr($n['gname'],'9','...');?>
						</div>
					</a>
				</div>
				<?php } ?>
				
			<?php }}?>
		<!--男装推荐结束-->
		<!--设计精选开始-->
		<div class="container">
			<h2>女装推荐</h2>
			        <?php
        //初始化
        $hd['list']['n'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($girls)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($girls as $n) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=1)break;
                //第几个值
                $hd['list'][n]['index']++;
                //第1个值
                $hd['list'][n]['first']=($listId == 0);
                //最后一个值
                $hd['list'][n]['last']= (count($girls)-1 <= $listId);
                //总数
                $hd['list'][n]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<div class="container_list">
					<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
						<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
						<div class="shopLabel hvr-grow-shadow">
							<?php echo hd_substr($n['gname'],'9','...');?>
						</div>
					</a>
				</div>	
			<?php }}?>
			<!--大图-->
			<div class="container_list container_list_big">
				<a href="<?php echo U('Goods/index',array('gid'=>$girlsBig['gid']));?>">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/Goods/shop_big.jpg" alt="" height="275" class="hvr-wobble-horizontal"/>
					<div class="shopLabel shopBigLabel hvr-grow-shadow">
						<?php echo hd_substr($girlsBig['gname'],'20','...');?>
					</div>
				</a>
			</div>
			<!--大图-->
			        <?php
        //初始化
        $hd['list']['n'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($girls)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=1;
            foreach ($girls as $n) {
                //开始值
                if ($listId<1) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=100)break;
                //第几个值
                $hd['list'][n]['index']++;
                //第1个值
                $hd['list'][n]['first']=($listId == 1);
                //最后一个值
                $hd['list'][n]['last']= (count($girls)-1 <= $listId);
                //总数
                $hd['list'][n]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				    <?php if($hd['list']['n']['first'] or $hd['list']['n']['last']){ ?>
				<div class="container_list" style="margin-right: 0px;">
				<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
					<div class="shopLabel hvr-grow-shadow">
						<?php echo hd_substr($n['gname'],'9','...');?>
					</div>
				</a>
				</div>
				<?php }else{ ?>
				<div class="container_list">
					<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
						<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
						<div class="shopLabel hvr-grow-shadow">
							<?php echo hd_substr($n['gname'],'9','...');?>
						</div>
					</a>
				</div>
				<?php } ?>
			<?php }}?>
		</div>
		<!--设计精选结束-->
		<!--配饰开始-->
		<div class="container">
			<h2>
				配饰
				<!--<a href="" class="shangouMore"></a>-->
			</h2>
			        <?php
        //初始化
        $hd['list']['n'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($peishi)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($peishi as $n) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=100)break;
                //第几个值
                $hd['list'][n]['index']++;
                //第1个值
                $hd['list'][n]['first']=($listId == 0);
                //最后一个值
                $hd['list'][n]['last']= (count($peishi)-1 <= $listId);
                //总数
                $hd['list'][n]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
			    <?php if($hd['list']['n']['index']==4 or $hd['list']['n']['index']==8){ ?>
				<div class="container_list" style="margin-right: 0px;">
				<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
					<div class="shopLabel hvr-grow-shadow">
						<?php echo hd_substr($n['gname'],'9','...');?>
					</div>
				</a>
				</div>
			<?php }else{ ?>	
				<div class="container_list">
				<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
					<div class="shopLabel hvr-grow-shadow">
						<?php echo hd_substr($n['gname'],'9','...');?>
					</div>
				</a>
				</div>
			<?php } ?>
			<?php }}?>
		</div>
		<!--配饰结束-->
		<!--总有些东西在激励着你-->
		<!--<div class="something">
			<h2>总有些东西在激励着你</h2>
			<div class="container_list">
				<a href="">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/something.jpg" alt="" />
					<div class="shopLabel">
						日系流苏马丁单鞋
					</div>
				</a>
			</div>
			<div class="container_list">
				<a href="">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/something.jpg" alt="" />
					<div class="shopLabel">
						日系流苏马丁单鞋
					</div>
				</a>
			</div>
			<div class="container_list" style="margin-right:0px ;">
				<a href="">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/something.jpg" alt="" width="337" height="201"/>
					<div class="shopLabel">
						日系流苏马丁单鞋
					</div>
				</a>
			</div>
		</div>-->
		<div class="container">
			<h2>童装精选</h2>
			        <?php
        //初始化
        $hd['list']['n'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($child)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($child as $n) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=100)break;
                //第几个值
                $hd['list'][n]['index']++;
                //第1个值
                $hd['list'][n]['first']=($listId == 0);
                //最后一个值
                $hd['list'][n]['last']= (count($child)-1 <= $listId);
                //总数
                $hd['list'][n]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
			    <?php if($hd['list']['n']['last']){ ?>
				<div class="container_list" style="margin-right: 0px;">
				<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
					<div class="shopLabel hvr-grow-shadow">
						<?php echo hd_substr($n['gname'],'9','...');?>
					</div>
				</a>
				</div>
			<?php }else{ ?>
				<div class="container_list">
					<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
						<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
						<div class="shopLabel hvr-grow-shadow">
							<?php echo hd_substr($n['gname'],'9','...');?>
						</div>
					</a>
				</div>	
			<?php } ?>
			<?php }}?>
		</div>
		<!--总有些东西在激励着你-->
		<!--他们会让你生活更有创意-->
		<!--<div class="them">
			<h2>
				他们会让你生活更有创意<a href="" class="themMore"></a>
			</h2>
			<ul>
				<li class="themLeft">
					<a href=""> <img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/themLeft.jpg" alt="" /> </a>
					<div class="zhezhao">
						<div></div>
						<p>
							<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/DesMore.png" alt="" />
							<span>岛屿</span>
						</p>
					</div>
				</li>
				<li class="themLeft">
					<a href=""> <img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/themLeft.jpg" alt="" /> </a>
					<div class="zhezhao">
						<div></div>
						<p>
							<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/DesMore.png" alt="" />
							<span>岛屿</span>
						</p>
					</div>
				</li>
				<li class="themRight">
					<a href=""> <img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/themRight.jpg" alt="" /> </a>
					<div class="zhezhao">
						<div></div>
						<p>
							<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/DesMore.png" alt="" />
							<span>岛屿</span>
						</p>
					</div>
				</li>
				<li class="themRight">
					<a href=""> <img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/themRight.jpg" alt="" /> </a>
					<div class="zhezhao">
						<div></div>
						<p>
							<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/DesMore.png" alt="" />
							<span>岛屿</span>
						</p>
					</div>
				</li>
			</ul>
		</div>-->
		<div class="container">
			<h2>家居日用</h2>
			        <?php
        //初始化
        $hd['list']['n'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($home)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($home as $n) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=100)break;
                //第几个值
                $hd['list'][n]['index']++;
                //第1个值
                $hd['list'][n]['first']=($listId == 0);
                //最后一个值
                $hd['list'][n]['last']= (count($home)-1 <= $listId);
                //总数
                $hd['list'][n]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
			    <?php if($hd['list']['n']['last']){ ?>
				<div class="container_list" style="margin-right: 0px;">
				<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
					<div class="shopLabel hvr-grow-shadow">
						<?php echo hd_substr($n['gname'],'9','...');?>
					</div>
				</a>
				</div>
			<?php }else{ ?>
				<div class="container_list">
					<a href="<?php echo U('Goods/index',array('gid'=>$n['gid']));?>">
						<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/<?php echo $n['pic'];?>" alt="" width="242" height="242" class="hvr-wobble-horizontal"/>
						<div class="shopLabel hvr-grow-shadow">
							<?php echo hd_substr($n['gname'],'9','...');?>
						</div>
					</a>
				</div>	
			<?php } ?>
			<?php }}?>
		</div>
		<!--他们会让你生活更有创意-->
		</div>
		<!--加入变革，焕新自我-->
		<!--<div class="us">
			<h2>加入变革，焕新自我</h2>
			<div class="container_list">
				<a href="">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/something.jpg" alt="" />
					<div class="shopLabel">
						日系流苏马丁单鞋
					</div>
				</a>
			</div>
			<div class="container_list">
				<a href="">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/something.jpg" alt="" />
					<div class="shopLabel">
						日系流苏马丁单鞋
					</div>
				</a>
			</div>
			<div class="container_list" style="margin-right:0px ;">
				<a href="">
					<img class="lazy" data-original="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/something.jpg" alt="" width="337" height="201"/>
					<div class="shopLabel">
						日系流苏马丁单鞋
					</div>
				</a>
			</div>
		</div>-->
		<!--加入变革，焕新自我-->
		<!--设计墙-->
		<div class="design">
			<h2>设计品牌墙</h2>
			<div class="brand">
				        <?php
        //初始化
        $hd['list']['b'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($brandData)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($brandData as $b) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=100)break;
                //第几个值
                $hd['list'][b]['index']++;
                //第1个值
                $hd['list'][b]['first']=($listId == 0);
                //最后一个值
                $hd['list'][b]['last']= (count($brandData)-1 <= $listId);
                //总数
                $hd['list'][b]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
					<a href=""><img src="http://127.0.0.1/ZBZphp/wowsai/<?php echo $b['blogo'];?>" alt="<?php echo $b['bname'];?>" width="160" class="hvr-grow-shadow"/></a>
				<?php }}?>
			</div>
		</div>
		<!--设计墙-->
		<div class="clear"></div>
		<!--底部开始-->
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
		<div class="footer">
			<div class="footer-top">
				<div class="footer-top-con">
					<dl>
						<dt>更多精彩</dt>
						<?php foreach ($topCate as $k=>$v){?>
							<dd class="splendid"><a href="<?php echo U('List/index',array('cid'=>$t['cid']));?>"><?php echo $v['cname'];?></a></dd>
						<?php }?>
					</dl>
					<dl style="margin-left: 170px;">
						<dt>我们承诺</dt>
						<dd>100％原创设计</dd>
						<dd>365天不打烊</dd>
						<dd>无理由退换货 ( 除定制 )</dd>
						<dd>担保交易</dd>
						<dd>先行赔付</dd>
    					<dd>支持定制</dd>
					</dl>
					<dl>
						<dt>在这里关注我们</dt>
						<dd><a href="http://weibo.com/" class="share sina" target="_blank">新浪微博</a></dd>
						<dd><a href="http://t.qq.com/" class="share qq" target="_blank">腾讯微博</a></dd>
						<dd><a href="http://www.douban.com/" class="share douban" target="_blank">豆瓣小站</a></dd>
						<dd><a href="http://zhan.renren.com/home?checked=true" class="share renren" target="_blank">人人小站</a></dd>
						<dd>
							<a href="javascript:;" class="share weixin">哇塞网官方微信</a>
							<img src="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/weixin.png" alt="" />
						</dd>
					</dl>
					<div class="ios">
						<a href=""><img src="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/edCode.png" alt="" /></a>
					</div>
				</div>
			</div>
			<div class="footer-bottom">
				<h2>高端定制上哇噻网</h2>
				<p>
					<?php foreach ($topCate as $k=>$v){?>
						<a href="<?php echo U('List/index',array('cid'=>$t['cid']));?>"><?php echo $v['cname'];?></a>
					<?php }?>
					<!--<a href="">联系我们</a>
					<a href="">媒体报道</a>
					<a href="">创意画报</a>
					<a href="">招贤纳士</a>
					<a href="">版权保护</a>
					<a href="">用户条款</a>
					<a href="">隐私声明</a>
					<a href="">友情链接</a>
					<a href="">网站地图</a>
					<a href="">帮助中心</a>
					<a href="">手工客</a>-->
				</p>
				<div class="banquan">北京光年创艺信息技术有限公司 WowSai.com Copyright© 2008-2013 [京ICP备10020900][京公网安备11010502026420][京ICP证090011号]</p>
				<div class="renzheng">
					<a href=""><img src="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/cx.png" alt="" /></a>
					<a href=""><img src="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/safe.png" alt="" /></a>
					<a href=""><img src="http://127.0.0.1/ZBZphp/wowsai/Static/index/img/cnnic.png" alt="" /></a>
				</div>
			</div>
		</div>
		<!--底部结束-->
	</body>
</html>
